package cn.kgc.tangcco;

import org.junit.Test;

/**
 * @author 李昊哲
 * @Description 数学远算符
 * @date 2020/8/11 上午10:21
 */
public class Demo05 {
    @Test
    public void test01() {
        int a = 10, b = 20;
        int c = a + b;
        System.out.println("c >>> " + c);
    }

    @Test
    public void test02() {
        int a = 10, b = 20;
        // 在java中除法为地板除
        int c = a / b;
        System.out.println("c >>> " + c);
    }
    @Test
    public void test03() {
        double a = 10, b = 20;
        double c = a / b;
        System.out.println("c >>> " + c);
    }
    @Test
    public void test04() {
        long l = 1597112873316L;
        float f = 3.14f;
        double dd = 3.14d;
    }

    @Test
    public void test05() {
        // 取模运算
        int a = 20 % 3;
        System.out.println("a >>> " + a);
    }
}
